package com.order.api.service;

import com.github.pagehelper.PageInfo;
import com.order.api.vo.request.OrdersAddRequest;
import com.order.api.vo.request.OrdersIdRequest;
import com.order.api.vo.request.OrdersUpdateRequest;
import com.order.api.vo.request.PageRequest;
import com.order.api.vo.response.OrdersResponse;


public interface OrdersService {

    /**
     * 查询订单详情
     */
    OrdersResponse findOrder(OrdersIdRequest request);

    /**
     * 订单列表-分页
     */

    PageInfo<OrdersResponse> findOrderList(PageRequest request);

    /**
     * 添加订单
     */
    boolean addOrder(OrdersAddRequest request);

    /**
     * 修改订单
     */
    boolean updateOrder(OrdersUpdateRequest request);

    /**
     *删除订单
     */
    boolean deleteOrder(OrdersIdRequest request);




}
